#ifndef MENUMODEL_H_
#define MENUMODEL_H_

#define EXIT 0
#define PLAY 1
#define PLAYER 2
#define RESTART 3
#define ENDGAME 4
#define RESUME 5
#define RETURN2MAIN 6
#define UNKNOWN 255

#include "MenuController.h"
#include "Game.h"
#include "Globals.h"

class MenuController;

class MenuModel
{
public:
	MenuModel();
	virtual ~MenuModel();
	void setValinta(int valinta);
	void setPlayers(int players);
	void setValittu(bool truth);
	void setGame(const Game*);
	int getValinta() const;
	int getPlayers() const;
	bool getValittu() const;
	Game* getGame() const;
	void changeState();
	bool getState() const;
	void setState(bool state);
	bool getUpdateMenu() const;
	void setUpdateMenu();
	MenuController* getMenuController() const;
private:
	bool valittu, stateChanged, updateMenu;
	int valinta, players;
	MenuController* menuC;
	Game* game;
};

#endif /*MENUMODEL_H_*/
